using System.Windows.Forms;

namespace template_dll.Dialogs
{
	internal sealed class Separator : Control
	{
		public Separator()
		{
			SetStyle
				(
					ControlStyles.ResizeRedraw |
					ControlStyles.OptimizedDoubleBuffer |
					ControlStyles.UserPaint |
					ControlStyles.AllPaintingInWmPaint,
					true
				);
		}

		protected override void OnPaint(PaintEventArgs e)
		{
			ControlPaint.DrawBorder3D(e.Graphics, ClientRectangle, Border3DStyle.SunkenOuter);
		}
	}
}
